<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>



</head>

<body oncontextmenu="return false">
	<div class="loader"></div>
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-comments-o"></i> 产品列表 <span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Classes used"> </a>

							</div>
						</span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">订单列表</h3>
				</div>
				<div class="panel-body">
					<form name="commitForm" id="commitForm" method="post" action="admin/shop/ordersList.shtml">
						<div class="table-responsive">
							<jodd:form scopes="request">

								<table class="table table-bordered  table-striped  " id="example">
									<tr>
										<td style="vertical-align:middle;">代理商编号：<input type="text" name="memberLoginName" id="memberLoginName" /> 订单状态: <select id="orderState" name="orderState">
												<option value="0">未审核</option>
												<option value="1">已发货</option>
												<option value="2">驳回</option>
												<option value="3">已完成</option>

										</select>

											<button type="submit" class="btn btn-success ">查询</button>
										</td>
									</tr>
								</table>
							</jodd:form>
						</div>
						<div class="table-responsive">
							<table class="table table-bordered table-hover table-striped display tab_center" id="example">
								<thead>


									<tr class="info">
										<th>下单时间</th>
										<th>代理商编号</th>

										<th>产品名称</th>
										<th>数量</th>

										<th>单价</th>
										<th>实付款</th>
										<th>付款方式</th>
										<th>收货信息</th>
										<th>订单状态</th>
										<th>操作</th>


									</tr>
								</thead>
								<tbody>
									<c:forEach items="${pagination.pageList}" var="o">


										<tr class="odd gradeX">
											<td style="text-align: center;vertical-align:middle;">${o.submitDate}</td>
											<td style="text-align: center;vertical-align:middle;">${o.memberLoginName}</td>


											<td style="text-align: center;vertical-align:middle;">${o.goodsTitle}</td>
											<td style="text-align: center;vertical-align:middle;">${o.buyNum}</td>
											<td style="text-align: center;vertical-align:middle;">${o.goodsPrice}</td>
											<td style="text-align: center;vertical-align:middle;">${o.payPrice}</td>
											<td style="text-align: center;vertical-align:middle;"><c:if test="${o.payWay==10}">
										现金积分
									</c:if> </td>
											<td style="vertical-align:middle;">收货人： ${o.personName}， 电话： ${o.tel}<br /> 邮政： ${o.code}<br /> 地址： ${o.address}<br /> 留言： ${o.note}<br />

											</td>
											<td style="text-align: center;vertical-align:middle;"><c:if test="${o.orderState==0}">
													<span style="color: red">管理员未审核</span>
												</c:if>
												 <c:if test="${o.orderState==2}">
										驳回
									</c:if> <c:if test="${o.orderState==3}">
										已完成
									</c:if>
									<c:if test="${o.orderState==4}">
									已发货
									</c:if></td>
											<td style="text-align: center;vertical-align:middle;"><c:if test="${o.orderState==0}">
													<a href="admin/shop/ordersFa.shtml?id=${o.id}" onclick="return confirm('确认发货 ？')"> <span style="color: red"><i class="fa fa fa-check-square"></i> 快捷审核发货</span>
													</a>
													<br />
													<br />
													<a href="admin/shop/ordersNo.shtml?id=${o.id}" onclick="return confirm('确认驳回订单？')"> <span style="color: red"><i class="fa fa-trash-o"></i> 驳回</span>
													</a>
												</c:if> <c:if test="${o.orderState==1}">
										 ${o.faDate}
									</c:if></td>


										</tr>
									</c:forEach>
									<tr>
										<td style="border: 0px;background: white;text-align: left;" colspan="10"><page:pageControl /></td>
									</tr>
								</tbody>


							</table>

						</div>

					</form>
				</div>
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->



</body>
</html>